﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using StoreManagementSystem;
using StoreManagementSystem.DomainObjects;

namespace TesterWeb
{
    [TestFixture]
    class BrandTester
    {
        [Test]
        public void CreateBrand()
        {
            Brand fiji = new Brand();
            Assert.AreEqual(fiji.id, 0);
            fiji.Name = "fiji";
            Assert.AreEqual(fiji.Name, "fiji");
            fiji.Name = "aquafina";
            Assert.AreEqual(fiji.Name, "aquafina");
        }

        [Test]
        public void CreateBrandWithConstructor()
        {
            Brand sony = new Brand("3", "Sony");
            Assert.AreEqual(sony.Name, "Sony");
            Assert.AreEqual(sony.id, 3);
        }
    }
}